package io.renren.modules.generator.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.generator.entity.AuditEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author guijing
 * @email sunlightcs@gmail.com
 * @date 2022-02-05 22:24:19
 */
@Mapper
@Repository
public interface AuditDao extends BaseMapper<AuditEntity> {
    @MapKey("audit_id")
    IPage<Map<String, Object>> selectTeacherAuditList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    @MapKey("audit_id")
    IPage<Map<String, Object>> selectSecretaryAuditList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    @MapKey("audit_id")
    IPage<Map<String, Object>> allStudentAuditList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    @MapKey("audit_id")
    IPage<Map<String, Object>> studentRestList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);
}
